# include <bits/stdc++.h>
using namespace std;
inline int gr(int l, int r) {
	int k = 0;
    int len = r - l + 1;
    k = rand() % len + l;
	return k;
}

inline int gr() { 
    return rand();
}

int alr[100000];
int main() {
    int seed;
    cin >> seed;
	srand(seed);
    printf("%d %d\n", gr(1, 100), gr(1, 100));
}
